package com.ruoyi.jproom.utils;

/**
 * Created by zh
 * 2020-3-15
 * 枚举方式统一管理错误编码
 */
public enum ResultEnum {
    SUCCESS(0, "成功"),
    FAILURE(1, "失败"),

    SELECT_NULL(10, "获取数据为空");


    private Integer code;

    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }


    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
